﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NetMicro.Core.Snowflake
{
    /// <summary>
    /// 雪花分布式id生成
    /// </summary>
    public interface IDistributedSnowflakeId
    {
        /// <summary>
        /// 生成单个id
        /// </summary>
        /// <returns></returns>
        long GetId();


        /// <summary>
        /// 批量生成id
        /// </summary>
        /// <param name="count">最大1000</param>
        /// <returns></returns>
        long[] GetId(int count);

    }
}
